{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "provenance": []
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    },
    "language_info": {
      "name": "python"
    },
    "widgets": {
      "application/vnd.jupyter.widget-state+json": {
        "e68e666a13e546a7a58a82ed2550e543": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "HBoxModel",
          "model_module_version": "1.5.0",
          "state": {
            "_dom_classes": [],
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "HBoxModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/controls",
            "_view_module_version": "1.5.0",
            "_view_name": "HBoxView",
            "box_style": "",
            "children": [
              "IPY_MODEL_27266f0031de426099074decd816e828",
              "IPY_MODEL_9b78a49472af44fa883bdcb00397f54f",
              "IPY_MODEL_b7f023430e704352bfadd011376260cd"
            ],
            "layout": "IPY_MODEL_535d4683151b416ea5d904176b66f8f3"
          }
        },
        "27266f0031de426099074decd816e828": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "HTMLModel",
          "model_module_version": "1.5.0",
          "state": {
            "_dom_classes": [],
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "HTMLModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/controls",
            "_view_module_version": "1.5.0",
            "_view_name": "HTMLView",
            "description": "",
            "description_tooltip": null,
            "layout": "IPY_MODEL_5cabcd5ad4cb436c8c72016a110749f8",
            "placeholder": "​",
            "style": "IPY_MODEL_e984e959897342d9825446f1b8761803",
            "value": "100%"
          }
        },
        "9b78a49472af44fa883bdcb00397f54f": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "FloatProgressModel",
          "model_module_version": "1.5.0",
          "state": {
            "_dom_classes": [],
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "FloatProgressModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/controls",
            "_view_module_version": "1.5.0",
            "_view_name": "ProgressView",
            "bar_style": "success",
            "description": "",
            "description_tooltip": null,
            "layout": "IPY_MODEL_946afc597f954781a4f4a5fdf4f4b7dc",
            "max": 6983030,
            "min": 0,
            "orientation": "horizontal",
            "style": "IPY_MODEL_544a305d54f841c9918176f3fcc95539",
            "value": 6983030
          }
        },
        "b7f023430e704352bfadd011376260cd": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "HTMLModel",
          "model_module_version": "1.5.0",
          "state": {
            "_dom_classes": [],
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "HTMLModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/controls",
            "_view_module_version": "1.5.0",
            "_view_name": "HTMLView",
            "description": "",
            "description_tooltip": null,
            "layout": "IPY_MODEL_e2ffae0946d945ce8fadfff3e053e48e",
            "placeholder": "​",
            "style": "IPY_MODEL_d4f611f1e49d45d7856c1aa187e79efb",
            "value": " 6.66M/6.66M [00:00&lt;00:00, 33.2MB/s]"
          }
        },
        "535d4683151b416ea5d904176b66f8f3": {
          "model_module": "@jupyter-widgets/base",
          "model_name": "LayoutModel",
          "model_module_version": "1.2.0",
          "state": {
            "_model_module": "@jupyter-widgets/base",
            "_model_module_version": "1.2.0",
            "_model_name": "LayoutModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "LayoutView",
            "align_content": null,
            "align_items": null,
            "align_self": null,
            "border": null,
            "bottom": null,
            "display": null,
            "flex": null,
            "flex_flow": null,
            "grid_area": null,
            "grid_auto_columns": null,
            "grid_auto_flow": null,
            "grid_auto_rows": null,
            "grid_column": null,
            "grid_gap": null,
            "grid_row": null,
            "grid_template_areas": null,
            "grid_template_columns": null,
            "grid_template_rows": null,
            "height": null,
            "justify_content": null,
            "justify_items": null,
            "left": null,
            "margin": null,
            "max_height": null,
            "max_width": null,
            "min_height": null,
            "min_width": null,
            "object_fit": null,
            "object_position": null,
            "order": null,
            "overflow": null,
            "overflow_x": null,
            "overflow_y": null,
            "padding": null,
            "right": null,
            "top": null,
            "visibility": null,
            "width": null
          }
        },
        "5cabcd5ad4cb436c8c72016a110749f8": {
          "model_module": "@jupyter-widgets/base",
          "model_name": "LayoutModel",
          "model_module_version": "1.2.0",
          "state": {
            "_model_module": "@jupyter-widgets/base",
            "_model_module_version": "1.2.0",
            "_model_name": "LayoutModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "LayoutView",
            "align_content": null,
            "align_items": null,
            "align_self": null,
            "border": null,
            "bottom": null,
            "display": null,
            "flex": null,
            "flex_flow": null,
            "grid_area": null,
            "grid_auto_columns": null,
            "grid_auto_flow": null,
            "grid_auto_rows": null,
            "grid_column": null,
            "grid_gap": null,
            "grid_row": null,
            "grid_template_areas": null,
            "grid_template_columns": null,
            "grid_template_rows": null,
            "height": null,
            "justify_content": null,
            "justify_items": null,
            "left": null,
            "margin": null,
            "max_height": null,
            "max_width": null,
            "min_height": null,
            "min_width": null,
            "object_fit": null,
            "object_position": null,
            "order": null,
            "overflow": null,
            "overflow_x": null,
            "overflow_y": null,
            "padding": null,
            "right": null,
            "top": null,
            "visibility": null,
            "width": null
          }
        },
        "e984e959897342d9825446f1b8761803": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "DescriptionStyleModel",
          "model_module_version": "1.5.0",
          "state": {
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "DescriptionStyleModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "StyleView",
            "description_width": ""
          }
        },
        "946afc597f954781a4f4a5fdf4f4b7dc": {
          "model_module": "@jupyter-widgets/base",
          "model_name": "LayoutModel",
          "model_module_version": "1.2.0",
          "state": {
            "_model_module": "@jupyter-widgets/base",
            "_model_module_version": "1.2.0",
            "_model_name": "LayoutModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "LayoutView",
            "align_content": null,
            "align_items": null,
            "align_self": null,
            "border": null,
            "bottom": null,
            "display": null,
            "flex": null,
            "flex_flow": null,
            "grid_area": null,
            "grid_auto_columns": null,
            "grid_auto_flow": null,
            "grid_auto_rows": null,
            "grid_column": null,
            "grid_gap": null,
            "grid_row": null,
            "grid_template_areas": null,
            "grid_template_columns": null,
            "grid_template_rows": null,
            "height": null,
            "justify_content": null,
            "justify_items": null,
            "left": null,
            "margin": null,
            "max_height": null,
            "max_width": null,
            "min_height": null,
            "min_width": null,
            "object_fit": null,
            "object_position": null,
            "order": null,
            "overflow": null,
            "overflow_x": null,
            "overflow_y": null,
            "padding": null,
            "right": null,
            "top": null,
            "visibility": null,
            "width": null
          }
        },
        "544a305d54f841c9918176f3fcc95539": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "ProgressStyleModel",
          "model_module_version": "1.5.0",
          "state": {
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "ProgressStyleModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "StyleView",
            "bar_color": null,
            "description_width": ""
          }
        },
        "e2ffae0946d945ce8fadfff3e053e48e": {
          "model_module": "@jupyter-widgets/base",
          "model_name": "LayoutModel",
          "model_module_version": "1.2.0",
          "state": {
            "_model_module": "@jupyter-widgets/base",
            "_model_module_version": "1.2.0",
            "_model_name": "LayoutModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "LayoutView",
            "align_content": null,
            "align_items": null,
            "align_self": null,
            "border": null,
            "bottom": null,
            "display": null,
            "flex": null,
            "flex_flow": null,
            "grid_area": null,
            "grid_auto_columns": null,
            "grid_auto_flow": null,
            "grid_auto_rows": null,
            "grid_column": null,
            "grid_gap": null,
            "grid_row": null,
            "grid_template_areas": null,
            "grid_template_columns": null,
            "grid_template_rows": null,
            "height": null,
            "justify_content": null,
            "justify_items": null,
            "left": null,
            "margin": null,
            "max_height": null,
            "max_width": null,
            "min_height": null,
            "min_width": null,
            "object_fit": null,
            "object_position": null,
            "order": null,
            "overflow": null,
            "overflow_x": null,
            "overflow_y": null,
            "padding": null,
            "right": null,
            "top": null,
            "visibility": null,
            "width": null
          }
        },
        "d4f611f1e49d45d7856c1aa187e79efb": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "DescriptionStyleModel",
          "model_module_version": "1.5.0",
          "state": {
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "DescriptionStyleModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "StyleView",
            "description_width": ""
          }
        },
        "2d0963b381f54358806e38fa43fbc643": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "HBoxModel",
          "model_module_version": "1.5.0",
          "state": {
            "_dom_classes": [],
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "HBoxModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/controls",
            "_view_module_version": "1.5.0",
            "_view_name": "HBoxView",
            "box_style": "",
            "children": [
              "IPY_MODEL_a9f7c38921254294b1ca7f52f97ddc85",
              "IPY_MODEL_a2e4887df0a74cf2ad86466e5fa24169",
              "IPY_MODEL_c2be1ab12a2b40f5b7e27604351b310c"
            ],
            "layout": "IPY_MODEL_539c12d908434e97a73f42b3d4eaea30"
          }
        },
        "a9f7c38921254294b1ca7f52f97ddc85": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "HTMLModel",
          "model_module_version": "1.5.0",
          "state": {
            "_dom_classes": [],
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "HTMLModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/controls",
            "_view_module_version": "1.5.0",
            "_view_name": "HTMLView",
            "description": "",
            "description_tooltip": null,
            "layout": "IPY_MODEL_03662591466746e1a4bf70df195021d0",
            "placeholder": "​",
            "style": "IPY_MODEL_c9726a02339b426f9dd93c654b36bc33",
            "value": "100%"
          }
        },
        "a2e4887df0a74cf2ad86466e5fa24169": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "FloatProgressModel",
          "model_module_version": "1.5.0",
          "state": {
            "_dom_classes": [],
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "FloatProgressModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/controls",
            "_view_module_version": "1.5.0",
            "_view_name": "ProgressView",
            "bar_style": "success",
            "description": "",
            "description_tooltip": null,
            "layout": "IPY_MODEL_30241e7a851447cea95724a2134ea767",
            "max": 773236,
            "min": 0,
            "orientation": "horizontal",
            "style": "IPY_MODEL_8f49db2785ac4449948d961c3984b4a3",
            "value": 773236
          }
        },
        "c2be1ab12a2b40f5b7e27604351b310c": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "HTMLModel",
          "model_module_version": "1.5.0",
          "state": {
            "_dom_classes": [],
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "HTMLModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/controls",
            "_view_module_version": "1.5.0",
            "_view_name": "HTMLView",
            "description": "",
            "description_tooltip": null,
            "layout": "IPY_MODEL_ca7ee195a098477cab2eb2cc1755939b",
            "placeholder": "​",
            "style": "IPY_MODEL_a65a0e6bac2747c6a06c18b5418a320f",
            "value": " 755k/755k [00:00&lt;00:00, 10.3MB/s]"
          }
        },
        "539c12d908434e97a73f42b3d4eaea30": {
          "model_module": "@jupyter-widgets/base",
          "model_name": "LayoutModel",
          "model_module_version": "1.2.0",
          "state": {
            "_model_module": "@jupyter-widgets/base",
            "_model_module_version": "1.2.0",
            "_model_name": "LayoutModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "LayoutView",
            "align_content": null,
            "align_items": null,
            "align_self": null,
            "border": null,
            "bottom": null,
            "display": null,
            "flex": null,
            "flex_flow": null,
            "grid_area": null,
            "grid_auto_columns": null,
            "grid_auto_flow": null,
            "grid_auto_rows": null,
            "grid_column": null,
            "grid_gap": null,
            "grid_row": null,
            "grid_template_areas": null,
            "grid_template_columns": null,
            "grid_template_rows": null,
            "height": null,
            "justify_content": null,
            "justify_items": null,
            "left": null,
            "margin": null,
            "max_height": null,
            "max_width": null,
            "min_height": null,
            "min_width": null,
            "object_fit": null,
            "object_position": null,
            "order": null,
            "overflow": null,
            "overflow_x": null,
            "overflow_y": null,
            "padding": null,
            "right": null,
            "top": null,
            "visibility": null,
            "width": null
          }
        },
        "03662591466746e1a4bf70df195021d0": {
          "model_module": "@jupyter-widgets/base",
          "model_name": "LayoutModel",
          "model_module_version": "1.2.0",
          "state": {
            "_model_module": "@jupyter-widgets/base",
            "_model_module_version": "1.2.0",
            "_model_name": "LayoutModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "LayoutView",
            "align_content": null,
            "align_items": null,
            "align_self": null,
            "border": null,
            "bottom": null,
            "display": null,
            "flex": null,
            "flex_flow": null,
            "grid_area": null,
            "grid_auto_columns": null,
            "grid_auto_flow": null,
            "grid_auto_rows": null,
            "grid_column": null,
            "grid_gap": null,
            "grid_row": null,
            "grid_template_areas": null,
            "grid_template_columns": null,
            "grid_template_rows": null,
            "height": null,
            "justify_content": null,
            "justify_items": null,
            "left": null,
            "margin": null,
            "max_height": null,
            "max_width": null,
            "min_height": null,
            "min_width": null,
            "object_fit": null,
            "object_position": null,
            "order": null,
            "overflow": null,
            "overflow_x": null,
            "overflow_y": null,
            "padding": null,
            "right": null,
            "top": null,
            "visibility": null,
            "width": null
          }
        },
        "c9726a02339b426f9dd93c654b36bc33": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "DescriptionStyleModel",
          "model_module_version": "1.5.0",
          "state": {
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "DescriptionStyleModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "StyleView",
            "description_width": ""
          }
        },
        "30241e7a851447cea95724a2134ea767": {
          "model_module": "@jupyter-widgets/base",
          "model_name": "LayoutModel",
          "model_module_version": "1.2.0",
          "state": {
            "_model_module": "@jupyter-widgets/base",
            "_model_module_version": "1.2.0",
            "_model_name": "LayoutModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "LayoutView",
            "align_content": null,
            "align_items": null,
            "align_self": null,
            "border": null,
            "bottom": null,
            "display": null,
            "flex": null,
            "flex_flow": null,
            "grid_area": null,
            "grid_auto_columns": null,
            "grid_auto_flow": null,
            "grid_auto_rows": null,
            "grid_column": null,
            "grid_gap": null,
            "grid_row": null,
            "grid_template_areas": null,
            "grid_template_columns": null,
            "grid_template_rows": null,
            "height": null,
            "justify_content": null,
            "justify_items": null,
            "left": null,
            "margin": null,
            "max_height": null,
            "max_width": null,
            "min_height": null,
            "min_width": null,
            "object_fit": null,
            "object_position": null,
            "order": null,
            "overflow": null,
            "overflow_x": null,
            "overflow_y": null,
            "padding": null,
            "right": null,
            "top": null,
            "visibility": null,
            "width": null
          }
        },
        "8f49db2785ac4449948d961c3984b4a3": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "ProgressStyleModel",
          "model_module_version": "1.5.0",
          "state": {
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "ProgressStyleModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "StyleView",
            "bar_color": null,
            "description_width": ""
          }
        },
        "ca7ee195a098477cab2eb2cc1755939b": {
          "model_module": "@jupyter-widgets/base",
          "model_name": "LayoutModel",
          "model_module_version": "1.2.0",
          "state": {
            "_model_module": "@jupyter-widgets/base",
            "_model_module_version": "1.2.0",
            "_model_name": "LayoutModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "LayoutView",
            "align_content": null,
            "align_items": null,
            "align_self": null,
            "border": null,
            "bottom": null,
            "display": null,
            "flex": null,
            "flex_flow": null,
            "grid_area": null,
            "grid_auto_columns": null,
            "grid_auto_flow": null,
            "grid_auto_rows": null,
            "grid_column": null,
            "grid_gap": null,
            "grid_row": null,
            "grid_template_areas": null,
            "grid_template_columns": null,
            "grid_template_rows": null,
            "height": null,
            "justify_content": null,
            "justify_items": null,
            "left": null,
            "margin": null,
            "max_height": null,
            "max_width": null,
            "min_height": null,
            "min_width": null,
            "object_fit": null,
            "object_position": null,
            "order": null,
            "overflow": null,
            "overflow_x": null,
            "overflow_y": null,
            "padding": null,
            "right": null,
            "top": null,
            "visibility": null,
            "width": null
          }
        },
        "a65a0e6bac2747c6a06c18b5418a320f": {
          "model_module": "@jupyter-widgets/controls",
          "model_name": "DescriptionStyleModel",
          "model_module_version": "1.5.0",
          "state": {
            "_model_module": "@jupyter-widgets/controls",
            "_model_module_version": "1.5.0",
            "_model_name": "DescriptionStyleModel",
            "_view_count": null,
            "_view_module": "@jupyter-widgets/base",
            "_view_module_version": "1.2.0",
            "_view_name": "StyleView",
            "description_width": ""
          }
        }
      }
    }
  },
  "cells": [
    {
      "cell_type": "code",
      "execution_count": 1,
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 1000
        },
        "id": "392pfyTIC6RN",
        "outputId": "b2f315dc-1cb7-405c-ec5e-a8cf2bbcdfd6"
      },
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
            "Collecting ultralytics\n",
            "  Downloading ultralytics-8.0.5-py3-none-any.whl (248 kB)\n",
            "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m249.0/249.0 KB\u001b[0m \u001b[31m5.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
            "\u001b[?25hRequirement already satisfied: numpy>=1.18.5 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (1.21.6)\n",
            "Collecting hydra-core>=1.2.0\n",
            "  Downloading hydra_core-1.3.1-py3-none-any.whl (154 kB)\n",
            "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m154.1/154.1 KB\u001b[0m \u001b[31m9.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
            "\u001b[?25hRequirement already satisfied: scipy>=1.4.1 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (1.7.3)\n",
            "Requirement already satisfied: tqdm>=4.64.0 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (4.64.1)\n",
            "Requirement already satisfied: matplotlib>=3.2.2 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (3.2.2)\n",
            "Requirement already satisfied: tensorboard>=2.4.1 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (2.9.1)\n",
            "Requirement already satisfied: Pillow>=7.1.2 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (7.1.2)\n",
            "Requirement already satisfied: pandas>=1.1.4 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (1.3.5)\n",
            "Requirement already satisfied: PyYAML>=5.3.1 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (6.0)\n",
            "Requirement already satisfied: torchvision>=0.8.1 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (0.14.0+cu116)\n",
            "Requirement already satisfied: torch>=1.7.0 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (1.13.0+cu116)\n",
            "Requirement already satisfied: ipython in /usr/local/lib/python3.8/dist-packages (from ultralytics) (7.9.0)\n",
            "Requirement already satisfied: psutil in /usr/local/lib/python3.8/dist-packages (from ultralytics) (5.4.8)\n",
            "Requirement already satisfied: opencv-python>=4.1.1 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (4.6.0.66)\n",
            "Requirement already satisfied: seaborn>=0.11.0 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (0.11.2)\n",
            "Collecting thop>=0.1.1\n",
            "  Downloading thop-0.1.1.post2209072238-py3-none-any.whl (15 kB)\n",
            "Requirement already satisfied: requests>=2.23.0 in /usr/local/lib/python3.8/dist-packages (from ultralytics) (2.25.1)\n",
            "Collecting GitPython>=3.1.24\n",
            "  Downloading GitPython-3.1.30-py3-none-any.whl (184 kB)\n",
            "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m184.0/184.0 KB\u001b[0m \u001b[31m13.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
            "\u001b[?25hCollecting gitdb<5,>=4.0.1\n",
            "  Downloading gitdb-4.0.10-py3-none-any.whl (62 kB)\n",
            "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m62.7/62.7 KB\u001b[0m \u001b[31m5.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
            "\u001b[?25hCollecting antlr4-python3-runtime==4.9.*\n",
            "  Downloading antlr4-python3-runtime-4.9.3.tar.gz (117 kB)\n",
            "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m117.0/117.0 KB\u001b[0m \u001b[31m4.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
            "\u001b[?25h  Preparing metadata (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
            "Collecting omegaconf<2.4,>=2.2\n",
            "  Downloading omegaconf-2.3.0-py3-none-any.whl (79 kB)\n",
            "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m79.5/79.5 KB\u001b[0m \u001b[31m5.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
            "\u001b[?25hRequirement already satisfied: importlib-resources in /usr/local/lib/python3.8/dist-packages (from hydra-core>=1.2.0->ultralytics) (5.10.2)\n",
            "Requirement already satisfied: packaging in /usr/local/lib/python3.8/dist-packages (from hydra-core>=1.2.0->ultralytics) (21.3)\n",
            "Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/local/lib/python3.8/dist-packages (from matplotlib>=3.2.2->ultralytics) (3.0.9)\n",
            "Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.8/dist-packages (from matplotlib>=3.2.2->ultralytics) (1.4.4)\n",
            "Requirement already satisfied: python-dateutil>=2.1 in /usr/local/lib/python3.8/dist-packages (from matplotlib>=3.2.2->ultralytics) (2.8.2)\n",
            "Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.8/dist-packages (from matplotlib>=3.2.2->ultralytics) (0.11.0)\n",
            "Requirement already satisfied: pytz>=2017.3 in /usr/local/lib/python3.8/dist-packages (from pandas>=1.1.4->ultralytics) (2022.7)\n",
            "Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.8/dist-packages (from requests>=2.23.0->ultralytics) (2.10)\n",
            "Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.8/dist-packages (from requests>=2.23.0->ultralytics) (2022.12.7)\n",
            "Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.8/dist-packages (from requests>=2.23.0->ultralytics) (1.24.3)\n",
            "Requirement already satisfied: chardet<5,>=3.0.2 in /usr/local/lib/python3.8/dist-packages (from requests>=2.23.0->ultralytics) (4.0.0)\n",
            "Requirement already satisfied: protobuf<3.20,>=3.9.2 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (3.19.6)\n",
            "Requirement already satisfied: werkzeug>=1.0.1 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (1.0.1)\n",
            "Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (1.8.1)\n",
            "Requirement already satisfied: grpcio>=1.24.3 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (1.51.1)\n",
            "Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (3.4.1)\n",
            "Requirement already satisfied: setuptools>=41.0.0 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (57.4.0)\n",
            "Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (0.6.1)\n",
            "Requirement already satisfied: absl-py>=0.4 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (1.3.0)\n",
            "Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (0.4.6)\n",
            "Requirement already satisfied: google-auth<3,>=1.6.3 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (2.15.0)\n",
            "Requirement already satisfied: wheel>=0.26 in /usr/local/lib/python3.8/dist-packages (from tensorboard>=2.4.1->ultralytics) (0.38.4)\n",
            "Requirement already satisfied: typing-extensions in /usr/local/lib/python3.8/dist-packages (from torch>=1.7.0->ultralytics) (4.4.0)\n",
            "Requirement already satisfied: pygments in /usr/local/lib/python3.8/dist-packages (from ipython->ultralytics) (2.6.1)\n",
            "Requirement already satisfied: traitlets>=4.2 in /usr/local/lib/python3.8/dist-packages (from ipython->ultralytics) (5.7.1)\n",
            "Collecting jedi>=0.10\n",
            "  Downloading jedi-0.18.2-py2.py3-none-any.whl (1.6 MB)\n",
            "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.6/1.6 MB\u001b[0m \u001b[31m36.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
            "\u001b[?25hRequirement already satisfied: decorator in /usr/local/lib/python3.8/dist-packages (from ipython->ultralytics) (4.4.2)\n",
            "Requirement already satisfied: prompt-toolkit<2.1.0,>=2.0.0 in /usr/local/lib/python3.8/dist-packages (from ipython->ultralytics) (2.0.10)\n",
            "Requirement already satisfied: backcall in /usr/local/lib/python3.8/dist-packages (from ipython->ultralytics) (0.2.0)\n",
            "Requirement already satisfied: pickleshare in /usr/local/lib/python3.8/dist-packages (from ipython->ultralytics) (0.7.5)\n",
            "Requirement already satisfied: pexpect in /usr/local/lib/python3.8/dist-packages (from ipython->ultralytics) (4.8.0)\n",
            "Collecting smmap<6,>=3.0.1\n",
            "  Downloading smmap-5.0.0-py3-none-any.whl (24 kB)\n",
            "Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (4.9)\n",
            "Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (1.15.0)\n",
            "Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (0.2.8)\n",
            "Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.8/dist-packages (from google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (5.2.0)\n",
            "Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.8/dist-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard>=2.4.1->ultralytics) (1.3.1)\n",
            "Requirement already satisfied: parso<0.9.0,>=0.8.0 in /usr/local/lib/python3.8/dist-packages (from jedi>=0.10->ipython->ultralytics) (0.8.3)\n",
            "Requirement already satisfied: importlib-metadata>=4.4 in /usr/local/lib/python3.8/dist-packages (from markdown>=2.6.8->tensorboard>=2.4.1->ultralytics) (6.0.0)\n",
            "Requirement already satisfied: wcwidth in /usr/local/lib/python3.8/dist-packages (from prompt-toolkit<2.1.0,>=2.0.0->ipython->ultralytics) (0.2.5)\n",
            "Requirement already satisfied: zipp>=3.1.0 in /usr/local/lib/python3.8/dist-packages (from importlib-resources->hydra-core>=1.2.0->ultralytics) (3.11.0)\n",
            "Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.8/dist-packages (from pexpect->ipython->ultralytics) (0.7.0)\n",
            "Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /usr/local/lib/python3.8/dist-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (0.4.8)\n",
            "Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.8/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard>=2.4.1->ultralytics) (3.2.2)\n",
            "Building wheels for collected packages: antlr4-python3-runtime\n",
            "  Building wheel for antlr4-python3-runtime (setup.py) ... \u001b[?25l\u001b[?25hdone\n",
            "  Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144575 sha256=4cbe0fdcef3a1f5aea65dce594730624d7efcc8e57ce0550837a0654172a4834\n",
            "  Stored in directory: /root/.cache/pip/wheels/b1/a3/c2/6df046c09459b73cc9bb6c4401b0be6c47048baf9a1617c485\n",
            "Successfully built antlr4-python3-runtime\n",
            "Installing collected packages: antlr4-python3-runtime, smmap, omegaconf, jedi, thop, hydra-core, gitdb, GitPython, ultralytics\n",
            "Successfully installed GitPython-3.1.30 antlr4-python3-runtime-4.9.3 gitdb-4.0.10 hydra-core-1.3.1 jedi-0.18.2 omegaconf-2.3.0 smmap-5.0.0 thop-0.1.1.post2209072238 ultralytics-8.0.5\n"
          ]
        },
        {
          "output_type": "display_data",
          "data": {
            "application/vnd.colab-display-data+json": {
              "pip_warning": {
                "packages": [
                  "pydevd_plugins"
                ]
              }
            }
          },
          "metadata": {}
        }
      ],
      "source": [
        "!pip install ultralytics"
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "!yolo task=detect mode=predict model=yolov8n.pt source=\"https://ultralytics.com/images/bus.jpg\""
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "5_iscwFzDFra",
        "outputId": "1a865e48-2e34-4ee2-fd6d-3c58b03910f3"
      },
      "execution_count": 2,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "Downloading https://ultralytics.com/images/bus.jpg to bus.jpg...\n",
            "100% 476k/476k [00:00<00:00, 17.1MB/s]\n",
            "Ultralytics YOLOv8.0.5 🚀 Python-3.8.16 torch-1.13.0+cu116 CPU\n",
            "Downloading https://github.com/ultralytics/assets/releases/download/v0.0.0/yolov8n.pt to yolov8n.pt...\n",
            "100% 6.24M/6.24M [00:00<00:00, 18.9MB/s]\n",
            "\n",
            "Fusing layers... \n",
            "YOLOv8n summary: 168 layers, 3151904 parameters, 0 gradients, 8.7 GFLOPs\n",
            "image 1/1 /content/bus.jpg: 640x480 4 persons, 1 bus, 1 stop sign, 275.3ms\n",
            "Speed: 5.8ms pre-process, 275.3ms inference, 21.8ms postprocess per image at shape (1, 3, 640, 640)\n",
            "Results saved to \u001b[1mruns/detect/predict\u001b[0m\n"
          ]
        }
      ]
    },
    {
      "cell_type": "markdown",
      "source": [],
      "metadata": {
        "id": "KcJh1AS-FSVA"
      }
    },
    {
      "cell_type": "code",
      "source": [
        "from ultralytics import YOLO\n",
        "\n",
        "# 加载模型\n",
        "model = YOLO(\"yolov8n.yaml\")  # 从头开始构建新模型\n",
        "model = YOLO(\"yolov8n.pt\")  # 加载预训练模型（推荐用于训练）\n",
        "\n",
        "#训练模型\n",
        "results = model.train(data=\"coco128.yaml\", epochs=3)  \n",
        "# 在验证集上评估模型性能\n",
        "results = model.val()  \n",
        "# 预测图像\n",
        "results = model(\"https://ultralytics.com/images/bus.jpg\")  \n",
        "# 将模型导出为 ONNX 格式\n",
        "success = model.export(format=\"onnx\")  "
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 1000,
          "referenced_widgets": [
            "e68e666a13e546a7a58a82ed2550e543",
            "27266f0031de426099074decd816e828",
            "9b78a49472af44fa883bdcb00397f54f",
            "b7f023430e704352bfadd011376260cd",
            "535d4683151b416ea5d904176b66f8f3",
            "5cabcd5ad4cb436c8c72016a110749f8",
            "e984e959897342d9825446f1b8761803",
            "946afc597f954781a4f4a5fdf4f4b7dc",
            "544a305d54f841c9918176f3fcc95539",
            "e2ffae0946d945ce8fadfff3e053e48e",
            "d4f611f1e49d45d7856c1aa187e79efb",
            "2d0963b381f54358806e38fa43fbc643",
            "a9f7c38921254294b1ca7f52f97ddc85",
            "a2e4887df0a74cf2ad86466e5fa24169",
            "c2be1ab12a2b40f5b7e27604351b310c",
            "539c12d908434e97a73f42b3d4eaea30",
            "03662591466746e1a4bf70df195021d0",
            "c9726a02339b426f9dd93c654b36bc33",
            "30241e7a851447cea95724a2134ea767",
            "8f49db2785ac4449948d961c3984b4a3",
            "ca7ee195a098477cab2eb2cc1755939b",
            "a65a0e6bac2747c6a06c18b5418a320f"
          ]
        },
        "id": "nBYbzKNVFkdd",
        "outputId": "f43b4b78-cc3e-46aa-a7e8-0b200bd194be"
      },
      "execution_count": 3,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stderr",
          "text": [
            "\n",
            "                   from  n    params  module                                       arguments                     \n",
            "  0                  -1  1       464  ultralytics.nn.modules.Conv                  [3, 16, 3, 2]                 \n",
            "  1                  -1  1      4672  ultralytics.nn.modules.Conv                  [16, 32, 3, 2]                \n",
            "  2                  -1  1      7360  ultralytics.nn.modules.C2f                   [32, 32, 1, True]             \n",
            "  3                  -1  1     18560  ultralytics.nn.modules.Conv                  [32, 64, 3, 2]                \n",
            "  4                  -1  2     49664  ultralytics.nn.modules.C2f                   [64, 64, 2, True]             \n",
            "  5                  -1  1     73984  ultralytics.nn.modules.Conv                  [64, 128, 3, 2]               \n",
            "  6                  -1  2    197632  ultralytics.nn.modules.C2f                   [128, 128, 2, True]           \n",
            "  7                  -1  1    295424  ultralytics.nn.modules.Conv                  [128, 256, 3, 2]              \n",
            "  8                  -1  1    460288  ultralytics.nn.modules.C2f                   [256, 256, 1, True]           \n",
            "  9                  -1  1    164608  ultralytics.nn.modules.SPPF                  [256, 256, 5]                 \n",
            " 10                  -1  1         0  torch.nn.modules.upsampling.Upsample         [None, 2, 'nearest']          \n",
            " 11             [-1, 6]  1         0  ultralytics.nn.modules.Concat                [1]                           \n",
            " 12                  -1  1    148224  ultralytics.nn.modules.C2f                   [384, 128, 1]                 \n",
            " 13                  -1  1         0  torch.nn.modules.upsampling.Upsample         [None, 2, 'nearest']          \n",
            " 14             [-1, 4]  1         0  ultralytics.nn.modules.Concat                [1]                           \n",
            " 15                  -1  1     37248  ultralytics.nn.modules.C2f                   [192, 64, 1]                  \n",
            " 16                  -1  1     36992  ultralytics.nn.modules.Conv                  [64, 64, 3, 2]                \n",
            " 17            [-1, 12]  1         0  ultralytics.nn.modules.Concat                [1]                           \n",
            " 18                  -1  1    123648  ultralytics.nn.modules.C2f                   [192, 128, 1]                 \n",
            " 19                  -1  1    147712  ultralytics.nn.modules.Conv                  [128, 128, 3, 2]              \n",
            " 20             [-1, 9]  1         0  ultralytics.nn.modules.Concat                [1]                           \n",
            " 21                  -1  1    493056  ultralytics.nn.modules.C2f                   [384, 256, 1]                 \n",
            " 22        [15, 18, 21]  1    897664  ultralytics.nn.modules.Detect                [80, [64, 128, 256]]          \n",
            "YOLOv8n summary: 225 layers, 3157200 parameters, 3157184 gradients, 8.9 GFLOPs\n",
            "\n",
            "Ultralytics YOLOv8.0.5 🚀 Python-3.8.16 torch-1.13.0+cu116 CPU\n",
            "\u001b[34m\u001b[1myolo/engine/trainer: \u001b[0mtask=detect, mode=train, model=yolov8n.yaml, data=coco128.yaml, epochs=3, patience=50, batch=16, imgsz=640, save=True, cache=False, device=, workers=8, project=None, name=None, exist_ok=False, pretrained=False, optimizer=SGD, verbose=False, seed=0, deterministic=True, single_cls=False, image_weights=False, rect=False, cos_lr=False, close_mosaic=10, resume=False, overlap_mask=True, mask_ratio=4, dropout=False, val=True, save_json=False, save_hybrid=False, conf=0.001, iou=0.7, max_det=300, half=True, dnn=False, plots=True, source=ultralytics/assets/, show=False, save_txt=False, save_conf=False, save_crop=False, hide_labels=False, hide_conf=False, vid_stride=1, line_thickness=3, visualize=False, augment=False, agnostic_nms=False, retina_masks=False, format=torchscript, keras=False, optimize=False, int8=False, dynamic=False, simplify=False, opset=17, workspace=4, nms=False, lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.001, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=7.5, cls=0.5, dfl=1.5, fl_gamma=0.0, label_smoothing=0.0, nbs=64, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, mosaic=1.0, mixup=0.0, copy_paste=0.0, cfg=None, hydra={'output_subdir': None, 'run': {'dir': '.'}}, v5loader=True, save_dir=runs/detect/train\n",
            "\n",
            "Dataset not found ⚠️, missing paths ['/datasets/coco128/images/train2017']\n",
            "Downloading https://ultralytics.com/assets/coco128.zip to coco128.zip...\n"
          ]
        },
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "  0%|          | 0.00/6.66M [00:00<?, ?B/s]"
            ],
            "application/vnd.jupyter.widget-view+json": {
              "version_major": 2,
              "version_minor": 0,
              "model_id": "e68e666a13e546a7a58a82ed2550e543"
            }
          },
          "metadata": {}
        },
        {
          "output_type": "stream",
          "name": "stderr",
          "text": [
            "Dataset download success ✅ (0.7s), saved to \u001b[1m/datasets\u001b[0m\n",
            "Downloading https://ultralytics.com/assets/Arial.ttf to /root/.config/Ultralytics/Arial.ttf...\n"
          ]
        },
        {
          "output_type": "display_data",
          "data": {
            "text/plain": [
              "  0%|          | 0.00/755k [00:00<?, ?B/s]"
            ],
            "application/vnd.jupyter.widget-view+json": {
              "version_major": 2,
              "version_minor": 0,
              "model_id": "2d0963b381f54358806e38fa43fbc643"
            }
          },
          "metadata": {}
        },
        {
          "output_type": "stream",
          "name": "stderr",
          "text": [
            "\n",
            "                   from  n    params  module                                       arguments                     \n",
            "  0                  -1  1       464  ultralytics.nn.modules.Conv                  [3, 16, 3, 2]                 \n",
            "  1                  -1  1      4672  ultralytics.nn.modules.Conv                  [16, 32, 3, 2]                \n",
            "  2                  -1  1      7360  ultralytics.nn.modules.C2f                   [32, 32, 1, True]             \n",
            "  3                  -1  1     18560  ultralytics.nn.modules.Conv                  [32, 64, 3, 2]                \n",
            "  4                  -1  2     49664  ultralytics.nn.modules.C2f                   [64, 64, 2, True]             \n",
            "  5                  -1  1     73984  ultralytics.nn.modules.Conv                  [64, 128, 3, 2]               \n",
            "  6                  -1  2    197632  ultralytics.nn.modules.C2f                   [128, 128, 2, True]           \n",
            "  7                  -1  1    295424  ultralytics.nn.modules.Conv                  [128, 256, 3, 2]              \n",
            "  8                  -1  1    460288  ultralytics.nn.modules.C2f                   [256, 256, 1, True]           \n",
            "  9                  -1  1    164608  ultralytics.nn.modules.SPPF                  [256, 256, 5]                 \n",
            " 10                  -1  1         0  torch.nn.modules.upsampling.Upsample         [None, 2, 'nearest']          \n",
            " 11             [-1, 6]  1         0  ultralytics.nn.modules.Concat                [1]                           \n",
            " 12                  -1  1    148224  ultralytics.nn.modules.C2f                   [384, 128, 1]                 \n",
            " 13                  -1  1         0  torch.nn.modules.upsampling.Upsample         [None, 2, 'nearest']          \n",
            " 14             [-1, 4]  1         0  ultralytics.nn.modules.Concat                [1]                           \n",
            " 15                  -1  1     37248  ultralytics.nn.modules.C2f                   [192, 64, 1]                  \n",
            " 16                  -1  1     36992  ultralytics.nn.modules.Conv                  [64, 64, 3, 2]                \n",
            " 17            [-1, 12]  1         0  ultralytics.nn.modules.Concat                [1]                           \n",
            " 18                  -1  1    123648  ultralytics.nn.modules.C2f                   [192, 128, 1]                 \n",
            " 19                  -1  1    147712  ultralytics.nn.modules.Conv                  [128, 128, 3, 2]              \n",
            " 20             [-1, 9]  1         0  ultralytics.nn.modules.Concat                [1]                           \n",
            " 21                  -1  1    493056  ultralytics.nn.modules.C2f                   [384, 256, 1]                 \n",
            " 22        [15, 18, 21]  1    897664  ultralytics.nn.modules.Detect                [80, [64, 128, 256]]          \n",
            "Model summary: 225 layers, 3157200 parameters, 3157184 gradients, 8.9 GFLOPs\n",
            "\n",
            "Transferred 355/355 items from pretrained weights\n",
            "\u001b[34m\u001b[1moptimizer:\u001b[0m SGD(lr=0.01) with parameter groups 57 weight(decay=0.0), 64 weight(decay=0.001), 63 bias\n",
            "\u001b[34m\u001b[1malbumentations: \u001b[0mBlur(p=0.01, blur_limit=(3, 7)), MedianBlur(p=0.01, blur_limit=(3, 7)), ToGray(p=0.01), CLAHE(p=0.01, clip_limit=(1, 4.0), tile_grid_size=(8, 8))\n",
            "\u001b[34m\u001b[1mtrain: \u001b[0mScanning /datasets/coco128/labels/train2017... 126 images, 2 backgrounds, 0 corrupt: 100%|██████████| 128/128 [00:00<00:00, 370.62it/s]\n",
            "\u001b[34m\u001b[1mtrain: \u001b[0mNew cache created: /datasets/coco128/labels/train2017.cache\n",
            "/usr/local/lib/python3.8/dist-packages/torch/cuda/__init__.py:497: UserWarning: Can't initialize NVML\n",
            "  warnings.warn(\"Can't initialize NVML\")\n",
            "\u001b[34m\u001b[1mval: \u001b[0mScanning /datasets/coco128/labels/train2017.cache... 126 images, 2 backgrounds, 0 corrupt: 100%|██████████| 128/128 [00:00<?, ?it/s]\n",
            "Image sizes 640 train, 640 val\n",
            "Using 0 dataloader workers\n",
            "Logging results to \u001b[1mruns/detect/train\u001b[0m\n",
            "Starting training for 3 epochs...\n",
            "\n",
            "      Epoch    GPU_mem   box_loss   cls_loss   dfl_loss  Instances       Size\n",
            "        1/3         0G      1.023      1.403      1.177        245        640:  12%|█▎        | 1/8 [00:18<02:11, 18.84s/it]Exception in thread Thread-17:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "        1/3         0G       1.15      1.495      1.259        193        640:  25%|██▌       | 2/8 [00:33<01:39, 16.61s/it]Exception in thread Thread-18:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "        1/3         0G       1.13      1.537      1.231        229        640:  38%|███▊      | 3/8 [00:48<01:19, 15.89s/it]Exception in thread Thread-19:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "        1/3         0G      1.158      1.436      1.224        234        640: 100%|██████████| 8/8 [02:05<00:00, 15.66s/it]\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95): 100%|██████████| 4/4 [00:42<00:00, 10.71s/it]\n",
            "                   all        128        929      0.688      0.546       0.63      0.467\n",
            "\n",
            "      Epoch    GPU_mem   box_loss   cls_loss   dfl_loss  Instances       Size\n",
            "        2/3         0G       1.13       1.29      1.215        229        640: 100%|██████████| 8/8 [01:59<00:00, 14.88s/it]\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95): 100%|██████████| 4/4 [00:42<00:00, 10.71s/it]\n",
            "                   all        128        929      0.675      0.594       0.65      0.487\n",
            "\n",
            "      Epoch    GPU_mem   box_loss   cls_loss   dfl_loss  Instances       Size\n",
            "        3/3         0G      1.167      1.359      1.249        179        640: 100%|██████████| 8/8 [01:58<00:00, 14.76s/it]\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95):  25%|██▌       | 1/4 [00:12<00:37, 12.66s/it]Exception in thread Thread-20:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "Exception in thread Thread-21:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95):  50%|█████     | 2/4 [00:25<00:25, 12.90s/it]Exception in thread Thread-22:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "Exception in thread Thread-23:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95):  75%|███████▌  | 3/4 [00:36<00:11, 11.71s/it]Exception in thread Thread-25:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "Exception in thread Thread-24:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95): 100%|██████████| 4/4 [00:46<00:00, 11.62s/it]\n",
            "                   all        128        929      0.664      0.596      0.656      0.495\n",
            "\n",
            "3 epochs completed in 0.139 hours.\n",
            "Optimizer stripped from runs/detect/train/weights/last.pt, 6.5MB\n",
            "Optimizer stripped from runs/detect/train/weights/best.pt, 6.5MB\n",
            "\n",
            "Validating runs/detect/train/weights/best.pt...\n",
            "Ultralytics YOLOv8.0.5 🚀 Python-3.8.16 torch-1.13.0+cu116 CPU\n",
            "Fusing layers... \n",
            "Model summary: 168 layers, 3151904 parameters, 0 gradients, 8.7 GFLOPs\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95):  25%|██▌       | 1/4 [00:08<00:24,  8.10s/it]Exception in thread Thread-26:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "Exception in thread Thread-27:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)    \n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95):  50%|█████     | 2/4 [00:16<00:16,  8.16s/it]Exception in thread Thread-28:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "Exception in thread Thread-29:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95):  75%|███████▌  | 3/4 [00:24<00:08,  8.11s/it]Exception in thread Thread-30:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "Exception in thread Thread-31:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95): 100%|██████████| 4/4 [00:32<00:00,  8.11s/it]\n",
            "                   all        128        929      0.665      0.595      0.656      0.495\n",
            "                person        128        254       0.74      0.689      0.767      0.548\n",
            "               bicycle        128          6      0.335      0.169      0.327      0.267\n",
            "                   car        128         46      0.731      0.217       0.32      0.202\n",
            "            motorcycle        128          5      0.612        0.8       0.88      0.689\n",
            "              airplane        128          6        0.6      0.667      0.835      0.664\n",
            "                   bus        128          7      0.663      0.714       0.72      0.636\n",
            "                 train        128          3      0.682          1      0.913      0.814\n",
            "                 truck        128         12      0.908      0.417      0.529      0.295\n",
            "                  boat        128          6      0.454      0.333      0.444      0.239\n",
            "         traffic light        128         14      0.707      0.178      0.207      0.134\n",
            "             stop sign        128          2      0.631        0.5      0.828      0.597\n",
            "                 bench        128          9      0.721      0.577      0.672      0.443\n",
            "                  bird        128         16      0.992      0.812      0.926      0.563\n",
            "                   cat        128          4      0.719          1      0.995      0.902\n",
            "                   dog        128          9      0.649      0.778      0.845      0.657\n",
            "                 horse        128          2      0.699          1      0.995      0.747\n",
            "              elephant        128         17      0.795      0.912      0.927      0.745\n",
            "                  bear        128          1      0.629          1      0.995      0.995\n",
            "                 zebra        128          4      0.858          1      0.995      0.965\n",
            "               giraffe        128          9      0.833          1      0.973      0.704\n",
            "              backpack        128          6      0.586      0.253      0.415      0.256\n",
            "              umbrella        128         18      0.703      0.722      0.773      0.528\n",
            "               handbag        128         19       0.62      0.105       0.22       0.14\n",
            "                   tie        128          7      0.846      0.714      0.734      0.486\n",
            "              suitcase        128          4      0.537          1      0.945      0.631\n",
            "               frisbee        128          5      0.614        0.8      0.799      0.719\n",
            "                  skis        128          1      0.865          1      0.995      0.497\n",
            "             snowboard        128          7       0.57      0.714      0.746       0.49\n",
            "           sports ball        128          6          1      0.317      0.504      0.299\n",
            "                  kite        128         10       0.52      0.328      0.452      0.198\n",
            "          baseball bat        128          4      0.498        0.5      0.372      0.206\n",
            "        baseball glove        128          7      0.642      0.429       0.43      0.293\n",
            "            skateboard        128          5      0.432        0.4       0.49      0.311\n",
            "         tennis racket        128          7      0.737      0.571      0.622      0.374\n",
            "                bottle        128         18      0.574      0.444       0.48      0.293\n",
            "            wine glass        128         16      0.538      0.583       0.65      0.375\n",
            "                   cup        128         36      0.672      0.333      0.439       0.32\n",
            "                  fork        128          6      0.616      0.167      0.174      0.173\n",
            "                 knife        128         16      0.545      0.438      0.584       0.37\n",
            "                 spoon        128         22      0.421      0.318      0.402      0.232\n",
            "                  bowl        128         28      0.625       0.75      0.699      0.569\n",
            "                banana        128          1          0          0      0.124     0.0258\n",
            "              sandwich        128          2          1      0.957      0.995      0.995\n",
            "                orange        128          4          1      0.535      0.945      0.605\n",
            "              broccoli        128         11      0.501      0.183        0.3       0.24\n",
            "                carrot        128         24      0.628       0.75      0.764      0.483\n",
            "               hot dog        128          2      0.474          1      0.828      0.828\n",
            "                 pizza        128          5      0.776          1      0.995        0.8\n",
            "                 donut        128         14      0.599          1      0.902      0.823\n",
            "                  cake        128          4      0.622          1      0.945      0.808\n",
            "                 chair        128         35      0.416      0.486       0.46      0.276\n",
            "                 couch        128          6      0.523        0.5      0.651      0.508\n",
            "          potted plant        128         14      0.675      0.786      0.736      0.517\n",
            "                   bed        128          3      0.895          1      0.995      0.814\n",
            "          dining table        128         13      0.508      0.556      0.557      0.474\n",
            "                toilet        128          2          1      0.913      0.995      0.896\n",
            "                    tv        128          2      0.437        0.5      0.745      0.646\n",
            "                laptop        128          3          1       0.65      0.708      0.631\n",
            "                 mouse        128          2          1          0     0.0394    0.00788\n",
            "                remote        128          8      0.616        0.5      0.623      0.487\n",
            "            cell phone        128          8          1          0      0.134     0.0968\n",
            "             microwave        128          3      0.482          1      0.863      0.737\n",
            "                  oven        128          5      0.538        0.6      0.499      0.369\n",
            "                  sink        128          6      0.352      0.167      0.252      0.171\n",
            "          refrigerator        128          5      0.693        0.4      0.662      0.507\n",
            "                  book        128         29      0.654      0.196      0.349      0.179\n",
            "                 clock        128          9      0.787      0.778      0.875      0.739\n",
            "                  vase        128          2      0.219          1      0.995      0.895\n",
            "              scissors        128          1          1          0     0.0905     0.0298\n",
            "            teddy bear        128         21      0.674      0.381      0.631      0.438\n",
            "            toothbrush        128          5          1      0.791      0.886      0.565\n",
            "Speed: 2.8ms pre-process, 230.9ms inference, 0.0ms loss, 3.7ms post-process per image\n",
            "Saving runs/detect/train/predictions.json...\n",
            "Results saved to \u001b[1mruns/detect/train\u001b[0m\n",
            "Ultralytics YOLOv8.0.5 🚀 Python-3.8.16 torch-1.13.0+cu116 CPU\n",
            "Fusing layers... \n",
            "Model summary: 168 layers, 3151904 parameters, 0 gradients, 8.7 GFLOPs\n",
            "\u001b[34m\u001b[1mval: \u001b[0mScanning /datasets/coco128/labels/train2017.cache... 126 images, 2 backgrounds, 0 corrupt: 100%|██████████| 128/128 [00:00<?, ?it/s]\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95):  12%|█▎        | 1/8 [00:03<00:21,  3.02s/it]Exception in thread Thread-32:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "Exception in thread Thread-33:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95):  25%|██▌       | 2/8 [00:06<00:18,  3.12s/it]Exception in thread Thread-34:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "Exception in thread Thread-35:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95):  38%|███▊      | 3/8 [00:09<00:16,  3.30s/it]Exception in thread Thread-36:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "Exception in thread Thread-37:\n",
            "Traceback (most recent call last):\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 932, in _bootstrap_inner\n",
            "    self.run()\n",
            "  File \"/usr/lib/python3.8/threading.py\", line 870, in run\n",
            "    self._target(*self._args, **self._kwargs)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 250, in plot_images\n",
            "    annotator.box_label(box, label, color=color)\n",
            "  File \"/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/utils/plotting.py\", line 63, in box_label\n",
            "    _, _, w, h = self.font.getbbox(label)  # text width, height\n",
            "AttributeError: 'FreeTypeFont' object has no attribute 'getbbox'\n",
            "                 Class     Images  Instances      Box(P          R      mAP50  mAP50-95): 100%|██████████| 8/8 [00:27<00:00,  3.49s/it]\n",
            "                   all        128        929       0.72      0.577      0.657      0.488\n",
            "                person        128        254      0.769       0.67      0.771      0.554\n",
            "               bicycle        128          6      0.814      0.333      0.385      0.324\n",
            "                   car        128         46      0.831      0.217      0.317      0.186\n",
            "            motorcycle        128          5        0.7        0.8      0.938      0.742\n",
            "              airplane        128          6      0.682      0.833      0.903      0.746\n",
            "                   bus        128          7      0.679      0.714      0.731      0.657\n",
            "                 train        128          3      0.548      0.667      0.863      0.777\n",
            "                 truck        128         12          1       0.32      0.506      0.313\n",
            "                  boat        128          6      0.606      0.167       0.31      0.137\n",
            "         traffic light        128         14       0.69      0.163      0.209      0.134\n",
            "             stop sign        128          2      0.952          1      0.995      0.697\n",
            "                 bench        128          9      0.837      0.575      0.683      0.428\n",
            "                  bird        128         16          1      0.669      0.918      0.599\n",
            "                   cat        128          4      0.732          1      0.995      0.822\n",
            "                   dog        128          9      0.573      0.778      0.838       0.66\n",
            "                 horse        128          2      0.767          1      0.995      0.547\n",
            "              elephant        128         17      0.886      0.919      0.936      0.739\n",
            "                  bear        128          1      0.648          1      0.995      0.995\n",
            "                 zebra        128          4      0.866          1      0.995      0.965\n",
            "               giraffe        128          9      0.809          1      0.963      0.708\n",
            "              backpack        128          6      0.577      0.244       0.36       0.23\n",
            "              umbrella        128         18      0.642      0.611       0.75      0.509\n",
            "               handbag        128         19      0.922      0.105      0.267      0.165\n",
            "                   tie        128          7      0.824      0.714      0.799      0.555\n",
            "              suitcase        128          4      0.488          1      0.849      0.566\n",
            "               frisbee        128          5       0.64        0.8      0.732      0.639\n",
            "                  skis        128          1      0.979          1      0.995      0.497\n",
            "             snowboard        128          7       0.94      0.714      0.809      0.509\n",
            "           sports ball        128          6      0.676      0.351      0.502      0.281\n",
            "                  kite        128         10      0.496        0.3      0.461      0.199\n",
            "          baseball bat        128          4      0.321       0.25      0.351      0.166\n",
            "        baseball glove        128          7      0.679      0.429       0.43      0.302\n",
            "            skateboard        128          5          1      0.564       0.61      0.392\n",
            "         tennis racket        128          7          1      0.411       0.54       0.34\n",
            "                bottle        128         18      0.558      0.389      0.433      0.274\n",
            "            wine glass        128         16      0.504      0.562      0.665      0.365\n",
            "                   cup        128         36      0.702      0.333      0.439      0.316\n",
            "                  fork        128          6      0.635      0.167      0.186      0.181\n",
            "                 knife        128         16      0.523      0.562      0.584      0.355\n",
            "                 spoon        128         22      0.639      0.318      0.411      0.214\n",
            "                  bowl        128         28      0.661       0.75      0.716      0.579\n",
            "                banana        128          1          0          0      0.124      0.029\n",
            "              sandwich        128          2      0.843        0.5      0.745      0.745\n",
            "                orange        128          4          1      0.463      0.895      0.595\n",
            "              broccoli        128         11      0.752      0.182      0.279      0.228\n",
            "                carrot        128         24      0.738      0.704      0.794      0.504\n",
            "               hot dog        128          2      0.547          1      0.828      0.796\n",
            "                 pizza        128          5      0.946          1      0.995       0.82\n",
            "                 donut        128         14      0.595          1      0.892      0.823\n",
            "                  cake        128          4      0.637          1      0.995       0.83\n",
            "                 chair        128         35      0.466      0.486      0.466      0.273\n",
            "                 couch        128          6      0.639        0.5      0.703      0.527\n",
            "          potted plant        128         14      0.726      0.643      0.727        0.5\n",
            "                   bed        128          3      0.771          1      0.995      0.727\n",
            "          dining table        128         13      0.452      0.462      0.504      0.418\n",
            "                toilet        128          2          1        0.9      0.995      0.946\n",
            "                    tv        128          2      0.419        0.5      0.745      0.621\n",
            "                laptop        128          3          1      0.621      0.698      0.657\n",
            "                 mouse        128          2          1          0     0.0389    0.00389\n",
            "                remote        128          8      0.812        0.5      0.605      0.495\n",
            "            cell phone        128          8          1          0     0.0853     0.0575\n",
            "             microwave        128          3       0.74      0.959      0.913      0.749\n",
            "                  oven        128          5      0.527        0.4      0.485      0.353\n",
            "                  sink        128          6      0.392      0.167      0.307      0.198\n",
            "          refrigerator        128          5       0.63        0.4      0.682      0.531\n",
            "                  book        128         29      0.531      0.138      0.335      0.167\n",
            "                 clock        128          9      0.925      0.889      0.904      0.757\n",
            "                  vase        128          2      0.369          1      0.995      0.895\n",
            "              scissors        128          1          1          0      0.124     0.0303\n",
            "            teddy bear        128         21      0.863      0.381      0.645      0.449\n",
            "            toothbrush        128          5          1      0.787      0.995      0.583\n",
            "Speed: 2.5ms pre-process, 199.1ms inference, 0.0ms loss, 3.5ms post-process per image\n",
            "Found https://ultralytics.com/images/bus.jpg locally at bus.jpg\n",
            "Ultralytics YOLOv8.0.5 🚀 Python-3.8.16 torch-1.13.0+cu116 CPU\n",
            "Fusing layers... \n",
            "Model summary: 168 layers, 3151904 parameters, 0 gradients, 8.7 GFLOPs\n",
            "image 1/1 /content/bus.jpg: 640x480 4 persons, 1 bus, 1 stop sign, 206.1ms\n",
            "Speed: 1.6ms pre-process, 206.1ms inference, 2.8ms postprocess per image at shape (1, 3, 640, 640)\n",
            "Ultralytics YOLOv8.0.5 🚀 Python-3.8.16 torch-1.13.0+cu116 CPU\n",
            "half=True only compatible with GPU or CoreML export, i.e. use device=0 or format=coreml\n",
            "Fusing layers... \n",
            "Model summary: 168 layers, 3151904 parameters, 0 gradients, 8.7 GFLOPs\n",
            "\n",
            "\u001b[34m\u001b[1mPyTorch:\u001b[0m starting from runs/detect/train/weights/best.pt with output shape (1, 84, 8400) (6.2 MB)\n",
            "\u001b[31m\u001b[1mrequirements:\u001b[0m YOLOv8 requirement \"onnx>=1.12.0\" not found, attempting AutoUpdate...\n",
            "Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
            "Collecting onnx>=1.12.0\n",
            "  Downloading onnx-1.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.5 MB)\n",
            "     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.5/13.5 MB 42.6 MB/s eta 0:00:00\n",
            "Requirement already satisfied: typing-extensions>=3.6.2.1 in /usr/local/lib/python3.8/dist-packages (from onnx>=1.12.0) (4.4.0)\n",
            "Requirement already satisfied: numpy>=1.16.6 in /usr/local/lib/python3.8/dist-packages (from onnx>=1.12.0) (1.21.6)\n",
            "Collecting protobuf<4,>=3.20.2\n",
            "  Downloading protobuf-3.20.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)\n",
            "     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 54.6 MB/s eta 0:00:00\n",
            "Installing collected packages: protobuf, onnx\n",
            "  Attempting uninstall: protobuf\n",
            "    Found existing installation: protobuf 3.19.6\n",
            "    Uninstalling protobuf-3.19.6:\n",
            "      Successfully uninstalled protobuf-3.19.6\n",
            "Successfully installed onnx-1.13.0 protobuf-3.20.3\n",
            "\n",
            "\u001b[31m\u001b[1mrequirements:\u001b[0m 1 package updated per ['onnx>=1.12.0']\n",
            "\u001b[31m\u001b[1mrequirements:\u001b[0m ⚠️ \u001b[1mRestart runtime or rerun command for updates to take effect\u001b[0m\n",
            "\n",
            "\n",
            "\u001b[34m\u001b[1mONNX:\u001b[0m starting export with onnx 1.13.0...\n",
            "\u001b[34m\u001b[1mONNX:\u001b[0m export success ✅ 15.6s, saved as runs/detect/train/weights/best.onnx (12.2 MB)\n",
            "\n",
            "Export complete (16.2s)\n",
            "Results saved to \u001b[1m/content/runs/detect/train/weights\u001b[0m\n",
            "Predict:         yolo task=detect mode=predict model=runs/detect/train/weights/best.onnx -WARNING ⚠️ not yet supported for YOLOv8 exported models\n",
            "Validate:        yolo task=detect mode=val model=runs/detect/train/weights/best.onnx -WARNING ⚠️ not yet supported for YOLOv8 exported models\n",
            "Visualize:       https://netron.app\n"
          ]
        }
      ]
    },
    {
      "cell_type": "code",
      "source": [
        "!yolo task=detect mode=predict model=runs/detect/train/weights/best.onnx source=\"https://ultralytics.com/images/bus.jpg\""
      ],
      "metadata": {
        "colab": {
          "base_uri": "https://localhost:8080/"
        },
        "id": "nT1C-j7gIMoU",
        "outputId": "5029fb60-1ff4-4f14-e716-db67257564b2"
      },
      "execution_count": 5,
      "outputs": [
        {
          "output_type": "stream",
          "name": "stdout",
          "text": [
            "Found https://ultralytics.com/images/bus.jpg locally at bus.jpg\n",
            "Ultralytics YOLOv8.0.5 🚀 Python-3.8.16 torch-1.13.0+cu116 CPU\n",
            "Loading runs/detect/train/weights/best.onnx for ONNX Runtime inference...\n",
            "image 1/1 /content/bus.jpg: 640x640 4 persons, 1 bus, 224.3ms\n",
            "Speed: 5.2ms pre-process, 224.3ms inference, 3.6ms postprocess per image at shape (1, 3, 640, 640)\n",
            "Results saved to \u001b[1mruns/detect/predict3\u001b[0m\n"
          ]
        }
      ]
    }
  ]
}